package com.wps.wdztv6.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppServersProperties {

    /**
     * 通过@Value给静态变量赋值 public void set方法是必须的 且要注到set上
     */
    public static String myserverUrl;

    @Value("${servers.myurl}")
    public void setMyserverUrl(String myserverUrl) {
        AppServersProperties.myserverUrl = myserverUrl;
    }


    public static String oaselfServerUrl;

    @Value("${servers.oaselfurl}")
    public void setOaselfServerUrl(String oaselfServerUrl) {
        AppServersProperties.oaselfServerUrl = oaselfServerUrl;
    }


}
